<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function arr(...a){
           console.log(a);
        }
        arr(1,2,3,4,0,55,)

        // 当有多个参数时必须放最后
        function arrs(a,b,...arest){
           console.log(a);
           console.log(b);
           console.log(arest);

        }
        arrs(1,2,3,4,0,55,)
    </script>
</body>
</html>